package com.gamotech.schoollifedemo

import com.gamotech.schoollifedemo.channel.common.CommonChannel
import com.gamotech.schoollifedemo.channel.home.HomeChannel
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine

class MainActivity : FlutterActivity() {
    override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
        super.configureFlutterEngine(flutterEngine)
        // 注册channel
        CommonChannel.createCommonChannel(this).register(flutterEngine.dartExecutor.binaryMessenger)
        HomeChannel.createHomeChannel(this).register(flutterEngine.dartExecutor.binaryMessenger)
    }
}
